package search

import (
	"context"

	"github.com/shopspring/decimal"
)

type SearchService interface {
	IndexProduct(ctx context.Context, event any) error
}

type ProductDoc struct {
	ID          int64    `json:"id"`
	Name        string   `json:"name"`
	Description string   `json:"description"`
	Skus        []SkuDoc `json:"skus"`
}

type SkuDoc struct {
	ID          int64             `json:"id"`
	ShopPrice   decimal.Decimal   `json:"shop_price"`
	MarketPrice decimal.Decimal   `json:"market_price"`
	Attributes  map[string]string `json:"attributes"`
}
